<template>
  <div>
    <button class="button" @click="buttonClick" style="height: {{}}px;">
        <i class="el-icon-plus" v-show="iconShow"></i>  {{text}}
    </button>
  </div>
</template>

<script>
export default {
    props:{
      text:String,
      iconShow:Boolean
    },
    methods:{
      buttonClick(){
        this.$emit('myclick')
      }
    }
} 
</script>

<style>
 .button {
  display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    background: #e04e2f;
    border: 1px solid #e04e2f;
    color: #fff;
    -webkit-appearance: none;
    text-align: center;
    box-sizing: border-box;
    outline: 0;
    margin: 0;
    transition: .1s;
    font-weight: 500;
    padding: 10px 23px;
    /* font-size: 14px; */
    border-radius: 8px ;
    
 }
</style>